const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({
      headless:false,
      defaultViewport:null
  });
  const page = await browser.newPage();
 /*  await page.goto('https://www.baidu.com');
  // 输入框的内容
  var input = await page.$("#kw")
  await input.type("hello world") */
  /*  点击事件
  var btn = await page.$("#su")
  await btn.click() */
  /* var content = await page.$eval("#su",ele=>ele.value)
  console.log(content); */

  await page.goto('https://gitee.com/login');
  var username = await page.$("#user_login");
  await username.type("18186265217");
  var pwd = await page.$("#user_password")
  await pwd.type("yi1290960972.")
  var sumbit = await page.$(".submit");
  await sumbit.click()
  await page.waitForTimeout(3000)
})();